package com.seckill.auth.common.constants;

public interface AuthErrorInfo {

    /*管理员的角色ID*/
    public static final Long ADMIN_ROLE_ID = 1L;
    /*用户的角色ID*/
    public static final Long USER_ROLE_ID = 2L;

    interface Msg {
        String UNAUTHORIZED = "未登录";
        String FORBIDDEN = "无访问权限";
        String INVALID_TOKEN = "无效的token";
        String EXPIRED_TOKEN = "token已过期";
        String INVALID_TOKEN_PAYLOAD = "token参数格式错误";
    }

    interface Code {
        // 过期token
        int EXPIRED_TOKEN_CODE = 40101;
        // 无效token
        int INVALID_TOKEN_CODE = 40102;
    }
}